import { http } from "@/utils/http";
export function getProductSpecInboundOrderPageList(
  data: Partial<ShopProductSpecInboundOrderPageRequest & PageRequest>
) {
  return http.post<MResponse<Array<ShopProductSpecInboundOrderVo>>>(
    "/product/productspecinboundorder/getProductSpecInboundOrderPageList",
    { data }
  );
}

export function addProductSpecInboundOrder(data: ShopProductSpecInboundOrderAddRequest) {
  return http.postJson<MResponse>("/product/productspecinboundorder/addProductSpecInboundOrder", { data });
}

export function retryInboundOrder(data: string) {
  return http.post<MResponse>("/product/productspecinboundorder/retryInboundOrder", { data: { orderNo: data } });
}
